<template>
  <div class="header">
    <van-nav-bar :title="title" :left-arrow="type == 1">
      <template #right>
        <slot></slot>
      </template>
    </van-nav-bar>
  </div>
</template>
<script>
export default {
  name: "SHeader",
  data() {
    return {};
  },
  props: {
    type: {
      type: Number,
      default: 1,
    },
    title: {
      type: String,
      default: "神领快递",
    },
  },
  created() {},
  computed: {},
  methods: {},
};
</script>
<style lang='less'  scoped>
.header {
  width: 100vw;
  height: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 43px;
  left: 0;
  z-index: 999;
  background: #fff;
  .left {
    width: 44px;
    height: 44px;
  }
  .title {
    font-size: 18px;
    color: #000;
    line-height: 25px;
    text-align: center;
    font-weight: bold;
  }
}
</style>
